package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.Spu;
import com.example.vo.SpuItemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 12057
* @description 针对表【spu(spu信息)】的数据库操作Service
* @createDate 2024-05-13 13:32:12
*/
public interface SpuService extends IService<Spu> {
    List<SpuItemVo> getSpuItemByCategoryId(Integer categoryId);

    List<SpuItemVo> getSpuItemByCategoryIdS(List<Long> idList);

    List<SpuItemVo> getSpuItemList(String keyword);

    String getSpuStoreNameById(Long storeId);

    String getSpuCategoryNameById(Long categoryId);

    List<Spu> getExamSpuList();

    int updatePublishStatus(Integer status,Long spuId);

    int addExamSpuToSpu(Long spuId);

    int addExamSkuToSku(Long spuId);

    int addExamSpuDescToSpuDesc(Long spuId);

    int addExamSpuAttrToSpuAttr(Long spuId);

    int addExamSkuAttrToSkuAttr(List<Long> skuIds);

    int addExamSkuImagesToSkuImages(List<Long> skuIds);

    List<Long> getExamSkuIdsBySpuId(Long spuId);

    int updateStatus( Integer status, Long spuId);

    List<Spu> getStoreSpuList(Long storeId);

    Long addSpu(Spu spu);
}
